//
//  LKMySubordinateHeaderIntroView.m
//  Mideleague_Shop
//
//  Created by Zhiwang on 2020/6/1.
//  Copyright © 2020 Zhiwang. All rights reserved.
//

#import "LKMySubordinateHeaderIntroView.h"

@interface LKMySubordinateHeaderIntroView()
@property (weak, nonatomic) IBOutlet UIImageView *iconImageV;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *joinTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *bossAgentLabel;
@property (weak, nonatomic) IBOutlet UILabel *typeLabel;

@end


@implementation LKMySubordinateHeaderIntroView



-(void)setDetailModel:(LKMySuboraListDetailModel *)detailModel{
    _detailModel = detailModel;
    self.nameLabel.text = _detailModel.agent_name;
    self.phoneLabel.text = [NSString stringWithFormat:@"手机号:%@",_detailModel.user_phone];
    NSString *dateStr = [NSString timestampSwitchTime:[_detailModel.add_time integerValue] andFormatter:@"YYYY-MM-dd"];
    self.joinTimeLabel.text = [NSString stringWithFormat:@"开户时间:%@",dateStr];
    self.bossAgentLabel.text = [NSString stringWithFormat:@"上级代理:%@",_detailModel.sup_agent_name];
    self.typeLabel.text = _detailModel.type_name;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
